

package cn.nubia.admin.application.bean;

import cn.nubia.admin.common.mybatis.annotations.Column;
import cn.nubia.admin.common.mybatis.annotations.Id;
import cn.nubia.admin.common.mybatis.annotations.Table;
import cn.nubia.admin.common.mybatis.annotations.UnColumn;
import org.hibernate.validator.constraints.NotBlank;


import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * Created by justin on 15/6/30.
 * CREATE TABLE `nb_share_template` (
 `template_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '模版编号',
 `template_type` int(11) DEFAULT NULL COMMENT '模板类型 ',
 `template_name` varchar(50) DEFAULT NULL COMMENT '模板名称',
 `template_note` varchar(2000) DEFAULT NULL COMMENT '模板内容',
 `language` int(11) DEFAULT NULL COMMENT '语言',  --IG
 `create_id` int(11) DEFAULT NULL COMMENT '添加人号码',
 `create_name` varchar(20) DEFAULT NULL COMMENT '添加人名称',
 `create_time` int(11) DEFAULT NULL COMMENT '添加时间',
 `last_modify_time` int(11) DEFAULT NULL COMMENT '最近修改时间',
 `last_modify_user` varchar(20) DEFAULT NULL COMMENT '最后修改人',
 PRIMARY KEY (`template_id`),
 KEY `AK_Key_2` (`template_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='分享模版';
 */
@Table(value = "nb_share_template")
public class ShareTemplate implements Serializable{

    private static final long serialVersionUID = -8244661101951482489L;

    @Id(value = "template_id")
    private Integer id;//模版编号
    @Column(value = "template_type")
    @NotNull(message = "模板类型不能为空")
    private Integer templateType;//模板类型
    @Column(value = "template_name")
    @Size(max=50,message = "标题不能超过50字")
    @NotBlank(message= "模板名称不能为空")
    private String templateName;//模板名称
    @Column(value = "template_note")
    @Size(max=2000,message = "内容不能超过2000字")
    @NotBlank(message= "模板内容不能为空")
    private String templateNote;//模板内容
    @Column(value = "create_id")
    private Integer createId;//添加人号码
    @Column(value = "create_name")
    private String createName;//添加人名称
    @Column(value = "create_time")
    private Integer createTime;
    @Column(value = "last_modify_time")
    private Integer lastModifyTime;//最近修改时间
    @Column(value = "last_modify_user")
    private String lastModifyUser;//最后修改人
    @UnColumn
    private String dictFieldItem;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTemplateType() {
     return templateType;
    }

    public void setTemplateType(Integer templateType) {
     this.templateType = templateType;
    }

    public String getTemplateName() {
     return templateName;
    }

    public void setTemplateName(String templateName) {
     this.templateName = templateName;
    }

    public String getTemplateNote() {
     return templateNote;
    }

    public void setTemplateNote(String templateNote) {
     this.templateNote = templateNote;
    }

    public Integer getCreateId() {
     return createId;
    }

    public void setCreateId(Integer createId) {
     this.createId = createId;
    }

    public String getCreateName() {
     return createName;
    }

    public void setCreateName(String createName) {
     this.createName = createName;
    }

    public Integer getCreateTime() {
     return createTime;
    }

    public void setCreateTime(Integer createTime) {
     this.createTime = createTime;
    }

    public Integer getLastModifyTime() {
     return lastModifyTime;
    }

    public void setLastModifyTime(Integer lastModifyTime) {
     this.lastModifyTime = lastModifyTime;
    }

    public String getLastModifyUser() {
     return lastModifyUser;
    }

    public void setLastModifyUser(String lastModifyUser) {
     this.lastModifyUser = lastModifyUser;
    }

    public String getDictFieldItem() {
        return dictFieldItem;
    }

    public void setDictFieldItem(String dictFieldItem) {
        this.dictFieldItem = dictFieldItem;
    }
}
